package com.hdax.dmw.exceptions;

public class DmwException extends RuntimeException{

    protected String message;
    protected String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public DmwException(String message){
        super(message);
        this.message = message;
    }

    public DmwException(String errorCode, String message){
        super(message);
        this.message = message;
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
